home *** CD-ROM | disk | FTP | other *** search
/ Champak 29 / Volume 29 - JOGO DISK .iso / Games / jet_pac_stan.swf / scripts / frame_61 / DoAction.as
Text File  |  2006-11-13  |  1KB  |  68 lines

  1. function reset()
  2. {
  3.    status = "play";
  4.    player.gotoAndStop("playerMiddle");
  5.    bossManCount = 0;
  6.    hitReady = 0;
  7.    hitDelay = 5;
  8.    doorOpen = false;
  9.    KeyGot = false;
  10.    scenery.rock.door.gotoAndStop(1);
  11.    nextLevel.gotoAndStop(1);
  12.    _root.MouseDown = false;
  13.    player._x = xStart;
  14.    player._y = yStart;
  15.    player._xscale = xScStart;
  16.    player._yscale = yScStart;
  17.    player._alpha = alpStart;
  18.    cage._visible = false;
  19.    gravInert = 0;
  20.    fallAmm = 0;
  21.    HorizAmm = 0;
  22.    Hinert = 0;
  23.    thrustPower = 0.8;
  24.    gravity = 0.4;
  25.    bounceCount = 0;
  26.    outOfFuel = false;
  27.    bounceY = 99;
  28.    ready.gotoAndPlay(2);
  29. }
  30. function doFuel()
  31. {
  32.    fuelfNum = int(fuel);
  33.    fuelDisp.gotoAndStop(fuelfNum);
  34.    if(fuel < 0)
  35.    {
  36.       outOfFuel = true;
  37.    }
  38. }
  39. scenery.rock.gotoAndPlay(1);
  40. direction = "in";
  41. playerFacing = "left";
  42. shitCount - 9;
  43. smLev = 0;
  44. fuel = 100;
  45. MovH = 400;
  46. MovW = 400;
  47. score = 0;
  48. level = 1;
  49. levelDisplay = level;
  50. speedLimit = 6;
  51. fuelDisp.gotoAndStop(100);
  52. beyonce.gotoAndStop("off");
  53. circle.startDrag(true);
  54. xStart = player._x;
  55. yStart = player._y;
  56. xScStart = player._xscale;
  57. yScStart = player._yscale;
  58. alpStart = player._alpha;
  59. gotBeyonce = false;
  60. _root.gameover = false;
  61. bossManActive = false;
  62. scenery.rock.key.gotoAndStop(1);
  63. scenery.rock.kkey.gotoAndStop(1);
  64. scenery.rock.kkkey.gotoAndStop(1);
  65. KeyGot = false;
  66. reset();
  67. _root.demo != 1 ? practiceMC.gotoAndStop(1) : practiceMC.gotoAndStop(2);
  68.